import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/hospital_congig_entity.g.dart';
import 'dart:convert';
export 'package:wch/generated/json/hospital_congig_entity.g.dart';

@JsonSerializable()
class HospitalCongigEntity {
	String? code;
	String? msg;
	HospitalCongigData? data;

	HospitalCongigEntity();

	factory HospitalCongigEntity.fromJson(Map<String, dynamic> json) => $HospitalCongigEntityFromJson(json);

	Map<String, dynamic> toJson() => $HospitalCongigEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HospitalCongigData {
	String? id;
	String? hospitalId;
	List<String>? departmentIds;
	String? isSignalQuality;
	String? isBlink;
	String? isLabelConfig;
	String? isPrivacySettings;
	String? isSleepIntervention;
	String? isPreSleepIntervention;
	String? isMidSleepIntervention;
	String? isGentleWakeup;
	String? isImpedance;
	int? blinkNum;
	String? wakeUpTime;
	List<HospitalCongigDataMusicFileList>? musicFileList;
	dynamic createTime;
	String? updateTime;

	HospitalCongigData();

	factory HospitalCongigData.fromJson(Map<String, dynamic> json) => $HospitalCongigDataFromJson(json);

	Map<String, dynamic> toJson() => $HospitalCongigDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HospitalCongigDataMusicFileList {
	int? id;
	String? musicName;
	String? musicIco;
	String? musicPath;

	HospitalCongigDataMusicFileList();

	factory HospitalCongigDataMusicFileList.fromJson(Map<String, dynamic> json) => $HospitalCongigDataMusicFileListFromJson(json);

	Map<String, dynamic> toJson() => $HospitalCongigDataMusicFileListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}